
CC = gcc
DATAPATH = /home/iot24/xjf/project/sqlite3/install/bin
INCLUDEPATH = sqlite3/install/include
LIBPATH = sqlite3/install/lib

all: RPI_server RPI_client

RPI_server: RPI_server.c
	${CC} RPI_server.c -I ${INCLUDEPATH} -L ${LIBPATH} -l sqlite3 -o RPI_server

RPI_client: RPI_client.c
	${CC} RPI_client.c -I ${INCLUDEPATH} -L ${LIBPATH} -l sqlite3 -o RPI_client

run_server:
	./RPI_server -p 6020

run_client:
	./RPI_client -i 127.0.0.1 -p 6020 -t 3


view_database1:
	make -C ${DATAPATH}

view_database2:
	make RPI2 -C ${DATAPATH}

